﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
     [Table("Darsena")]
    public class Darsena
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        [Required(ErrorMessage = "El Interno es requerido")]    
        [Range(1,double.MaxValue, ErrorMessage="El interno debe ser mayor a 1")]
        public int interno { get; set; }

        [Required(ErrorMessage = "El Numero de Darsena requerido")]
   
        public int nroDarsena { get; set; }

        [DisplayFormat(ConvertEmptyStringToNull=false)]
        public virtual Empresa empresa { get; set; }

        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public virtual Localidad localidad { get; set; }

        public DateTime hora { get; set; }


    }



    
}
